﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RPGServer
{
    /// <summary>
    /// 服务器发送给客户端的命令
    /// </summary>
    public class RPGNET_STC_CMD
    {
        /// <summary>
        /// 登录成功
        /// </summary>
        public const byte LOGIN_SUCCESS = 0x28;

        /// <summary>
        /// 登录失败
        /// </summary>
        public const byte LOGIN_FAILURE = 0x29;

        #region command:server->client

        /// <summary>
        /// command
        /// server to client
        /// object move
        /// 地图上有单位在移动
        /// </summary>
        public const byte CMD_STC_OBJECT_MOVE = 0x04;
        /// <summary>
        /// 服务器-客户端获取地图数据
        /// </summary>
        public const byte CLIENT_CMD_GAME_MAPDATA = 0x03;

        public const byte CMD_GAME_RESPONSE_LEAVEMAP = 0x01;

        /// <summary>
        /// 有新单位加入到游戏中,根据地图来划分
        /// </summary>
        public const byte CMD_STC_OBJECT_ADD = 0x05;

        /// <summary>
        /// 移除某单位，跟地图有关
        /// </summary>
        public const byte CMD_STC_OBJECT_REMOVE = 0x06;

        /// <summary>
        /// 地图上所有的单位信息
        /// </summary>
        public const byte CMD_STC_ALL_OBJECT = 0x07;

        #endregion
    }
}
